if a != b and b !=c and a != c:
      return a+b+c
  if a==b==c:
      return 0
  else:
    if a==b:
      return c
    if b==c:
      return a
    if a==c:
      return b